import Vuei18n from 'vue-i18n'
import Vue from 'vue'
import elEN from 'element-ui/lib/locale/lang/en'
import elZH from 'element-ui/lib/locale/lang/zh-CN'

Vue.use(Vuei18n)
const i18n = new Vuei18n({
  locale: 'zh',
  messages: {
    en: {
      xxx: 'home',
      ...elEN
    },
    zh: {
      xxx: '首页',
      ...elZH
    }
  }
})

export default i18n
